from PyQt5.QtCore import QObject, pyqtSignal


class MySignal(QObject):
    """定义全局信号"""
    # 通用信号
    send_int = pyqtSignal(int)
    send_str = pyqtSignal(str)

    # 指定信号
    item_scraped = pyqtSignal()
    spider_closed = pyqtSignal()

    def send(self, msg):
        self.send_int.emit(msg)






